﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Saper
{
    public partial class InputBox : Form
    {
        public InputBox()
        {
            InitializeComponent();
        }

        bool t; 
        String temp;

        public static bool Input(String IBhead, 
        String IBlabel, 
        out String s
        )
        {
            InputBox IBform = new InputBox();
            IBform.Text = IBhead;
            IBform.label1.Text = IBlabel; 
            IBform.ShowDialog(); 
            s = IBform.temp; 
            return IBform.t;
        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            temp = this.textBox1.Text;
            t = true;
            Close();

        }

    }
}
